import Admimistrator from '../../views/Administrator'
import Welcome from '../../views/Administrator/Welcome'
import Housing from '../../views/Administrator/Housing'
import Live from '../../views/Administrator/Live_Streaming'
import Group from '../../views/Administrator/Group_Purchase'
import Audit from '../../views/Administrator/Audit'
import Indent from '../../views/Administrator/Indent'
import Message from '../../views/Administrator/Message'
import Broker from '../../views/Administrator/Broker'

export default [
    {
        path: '/admimistrator',
        name: 'Admimistrator',
        component: Admimistrator,
        id:0,
        meta: {
            auth: ["管理员", "用户"]
        },
        children: [
            {
                path: '/admimistrator/welcome',
                name: "欢迎",
                component: Welcome,
                id:1,
                meta: {
                    auth: ["管理员", "用户"]
                }
            },
            {
                path: '/admimistrator/housing',
                name: '房源管理',
                id:2,
                component: Housing,
                meta: {
                    auth: ["管理员"]
                },
            },
            {
                path: '/admimistrator/live',
                name: '直播管理',
                component: Live,
                id:3,
                meta: {
                    auth: ["管理员"]
                }
            },
            {
                path: '/admimistrator/group',
                name: '团购管理',
                component: Group,
                id:4,
                meta: {
                    auth: ["管理员", "用户"]
                }
            },
            {
                path: '/admimistrator/audit',
                name: '审核管理',
                component: Audit,
                id:5,
                meta: {
                    auth: ["管理员"]
                }
            },
            {
                path: '/admimistrator/indent',
                name: '订单管理',
                component: Indent,
                id:6,
                meta: {
                    auth: ["管理员", "用户"]
                }
            },
            {
                path: '/admimistrator/message',
                name: '咨询管理',
                component: Message,
                id:7,
                meta: {
                    auth: ["管理员", "用户"]
                }
            },
            {
                path: '/admimistrator/broker',
                name: '经纪人管理',
                component: Broker,
                id:8,
                meta: {
                    auth: ["管理员"]
                }
            },
        ]
    },

]
